
import $app from '@$@/js/$app';
import $router from '@/router'

let ListWarnInfo = {

  list(that) {

    let out = [
      {
        title: " ",
        type: "index",
        width: 30,
        align: "center ",
        className: "goOnTxt c999"
      },
      {
        type: "selection",
        className: "goOnTxt",
        align: "center",
        width: 40
      },
      {
        title: "专利名称",
        key: "patent_name",
        className: "goOnTxt",
        resizable: true,
      },
      {
        title: "专利号",
        className: "goOnTxt",
        resizable: true,
        width:150,
        render: (h, params) => {
          let {
            row: {
              patent_no
            }
          } = params;
          let out = [
            h(
              "span",
              {
                class: " cBlue pointer",
                on:{
                  click:()=>{
                    // 页面跳转
                    $router.push({
                      name: 'patentInfo',
                      query: {
                        patent_no,
                        type:1
                      }
                    })
                  }
                }
              },
              patent_no
            )
          ];
  
  
  
          return out;
        }
      },
      {
        title: "申请人",
        className: "goOnTxt",
        width:200,
        resizable: true,
        render: (h, params) => {
          let {
            row:{
              patent_applicant_one,
            }
          } = params;
          let out = [
            h(
              "span",
              {
                class: " cBlue pointer",
                on:{
                  click:()=>{
                    $app.closeHadPage("patentList", () => {
                      // 页面跳转
                      $router.push({
                        name: "patentList",
                        query: {
                          query_key: patent_applicant_one,
                          type:3
                        }
                      });
                    });
                  }
                }
              },
              patent_applicant_one
            )
          ];
  
  
  
          return out;
        }
      },
      {
        title: "专利类型",
        key: "patent_type",
        className: "goOnTxt",
        resizable: true,
        width:150
      },
      {
        title: "申请日期",
        key: "patent_apply_day",
        className: "goOnTxt",
        resizable: true,
        width:130
      },
      {
        title: "截止时间",
        key: "limit_date",
        className: "goOnTxt",
        resizable: true,
        width:130
      },
      {
        title: "当前状态",
        className: "goOnTxt",
        render: (h, params) => {
          let {
            row: {
              fee_name,fee
            }
          } = params;
          let out = [
            h(
              "span",
              {
                class: " ",
              },
              fee_name
            )
          ];
  
  
  
          return out;
        }
      },
      {
        title: "操作",
        className: "goOnTxt",
        width:150,
        render: (h, params) => {
          let {
            row,
            row: {
              patent_no,patent_name
            }
          } = params;
          let out = [
            h(
              "span",
              {
                class: "  cBlue textLink marginR10",
                on: {
                  click: () => {
                    that.woRb(patent_no.replace(/CN/g,''))
                  }
                }
              },
              `续费`
            ),
            h(
              "span",
              {
                class: "  cCCC marginR10",
              },
              `|`
            ),
            h(
              "span",
              {
                class: "  cBlue textLink ",
                on: {
                  click: () => {
                    that.xwtwPP(patent_no.replace(/CN/g,''),patent_name);
                  }
                }
              },
              `查看详情`
            ),

            // h(
            //   "span",
            //   {
            //     class: "  cCCC marginR10",
            //   },
            //   `|`
            // ),
            // h(
            //   "span",
            //   {
            //     class: "  c999 textLink",
            //     on: {
            //       click: () => {
            //         that.huLA(row);
            //       }
            //     }
            //   },
            //   `忽略`
            // ),
          ];
  
  
  
          return out;
        }
      }
    ];


    return out;
  }
}

// 表格 列 配置
export default ListWarnInfo;